package cn.ycxy.lbl.posts.controller;

import cn.ycxy.lbl.common.restful.R;
import cn.ycxy.lbl.pojo.posts.domain.LblCsDealClassify;
import cn.ycxy.lbl.posts.service.IDealClassifyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "二手交易分类模块")
@RestController
@RequestMapping("/deal-classify")
public class DealClassifyController {

    @Autowired
    private IDealClassifyService dealClassifyService;

    @ApiOperation("获取分类列表")
    @GetMapping("/list")
    public R<List<LblCsDealClassify>> getList(){
        return R.ok(dealClassifyService.list());
    }


}
